<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<h1>all books</h1>
	<table>
		<tr>
			<th>ID</th>
			<th>bookName</th>
			<th>price</th>
			<th>option</th>
		</tr>
		<c:forEach var="b" items="${bks }">
			<tr>
				<td>${b.id }</td>
				<td>${b.bname }</td>
				<td><fmt:formatNumber value="${b.price }" pattern="$##,###.00"></fmt:formatNumber></td>
				<td><a href="deleteBook?id=${b.id}">delete</a></td>
			</tr>

		</c:forEach>

	</table>

</body>
</html>